package br.gov.ms.tce.modelo.bean;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;


@Entity
@Table( schema = "comum", name = "pessoa_juridica")
@Inheritance(strategy=InheritanceType.JOINED)
public class PessoaJuridica extends Pessoa implements java.io.Serializable {


	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 2133904568502229816L;	
	private String cnpj;
	private String razaoSocial;
	private String nomeFantasia;
	private String insEstadual;
	private String insMunicipal;
	
	/**
	 * Construtor Padrão
	 */
	public PessoaJuridica() {
	}

	public PessoaJuridica(String cnpj) {		
		this.cnpj = cnpj;
	}

	public PessoaJuridica(String cnpj, String razaoSocial,
			String nomeFantasia, String insEstadual, String insMunicipal) {	
		super('0',SituacaoPessoaEnum.VALIDADO, false, null);
		this.cnpj = cnpj;
		this.razaoSocial = razaoSocial;
		this.nomeFantasia = nomeFantasia;
		this.insEstadual = insEstadual;
		this.insMunicipal = insMunicipal;		
	}

	

	@Column(name = "cnpj", nullable = false, length = 16)
	public String getCnpj() {
		return this.cnpj;
	}

	public void setCnpj(String cnpj) {
		this.cnpj = cnpj;
	}

	@Column(name = "razao_social")
	public String getRazaoSocial() {
		return this.razaoSocial;
	}

	public void setRazaoSocial(String razaoSocial) {
		this.razaoSocial = razaoSocial;
	}

	@Column(name = "nome_fantasia")
	public String getNomeFantasia() {
		return this.nomeFantasia;
	}

	public void setNomeFantasia(String nomeFantasia) {
		this.nomeFantasia = nomeFantasia;
	}

	@Column(name = "ins_estadual", length = 50)
	public String getInsEstadual() {
		return this.insEstadual;
	}

	public void setInsEstadual(String insEstadual) {
		this.insEstadual = insEstadual;
	}

	@Column(name = "ins_municipal", length = 50)
	public String getInsMunicipal() {
		return this.insMunicipal;
	}

	public void setInsMunicipal(String insMunicipal) {
		this.insMunicipal = insMunicipal;
	}

	

}
